//
//  AgreementApi.m
//  SeaMelonSeeds_Counselor
//
//  Created by 杨笑 on 2017/9/5.
//  Copyright © 2017年 杨笑. All rights reserved.
//

#import "AgreementApi.h"

@implementation AgreementApi
{
    NSString    *_url;
}
-(id)initWithWebType:(WebType)webType{
    self = [super init];
    if (self) {
        switch (webType) {
            case WebTypeCashExplain:
                _url = @"config/cashExplain";
                break;
            case WebTypeUserAgreement:
                _url = @"config/userAgreement";
                break;
            default:
                break;
        }
    }
    return self;
}

-(YTKRequestMethod)requestMethod
{
    return YTKRequestMethodGET;
}

-(NSString *)requestUrl{
    return _url;
}

@end
